<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@page import="com.manage.user.UserAddVo"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link href="<%=basePath%>/images/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=path%>/js/jquery-1.9.1.min.js"></script>
<script>
	function submit1(){
		var username = document.getElementById('username').value;
		var password = document.getElementById('password').value;
		var otherpwd = document.getElementById('otherpwd').value;
		if(username==''){
			alert('请填写登录用户名')
				return false;
		}
		if(username.length != 18 || !Number(username)){
			alert('请输入正确的身份证号码')
				return false;
		}
		if(password==''){
			alert('请填写用户密码')
				return false;
		}
		if(password!=otherpwd){
			alert('密码填写不一致!');
				return false;
		}
		
	}
	var msg="${requestScope.rMsg}";
		if(msg == 'userExist'){
	        alert('用户名已经存在!');
		}else if(msg!=""){
			alert(msg);
			window.close();
		}
</script>
<%	
	
 %>
</head>
<base target="_self">
<body class="bg_003">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<form id="useradd" name="useradd" action="<%=path %>/system/useradd.action" method="post">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="1" bgcolor="#e1e1e2"></td>
        <td height="100" align="center">
        <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#e1e1e1">
          <tr>
            <td width="10%" height="31" align="right" bgcolor="#f5f5f5">登录用户名:<br>(身份证号码)</td>
            <td width="20%" height="31" bgcolor="#f5f5f5" align="left"><input name="uservo.username" type="text" id="username" size="14" value=""></td>
          </tr>
          <tr>
          	<td width="12%" height="31" align="right" bgcolor="#f5f5f5">用户密码:</td>
            <td width="20%" height="31" bgcolor="#f5f5f5" align="left"><input name="uservo.password" type="password" id="password" size="14" value=""></td>
          </tr>
          <tr>
          	<td width="12%" height="31" align="right" bgcolor="#f5f5f5">确认密码:</td>
            <td width="20%" height="31" bgcolor="#f5f5f5" align="left"><input name="otherpwd" type="password" id="otherpwd" size="14" value=""></td>
          </tr>
          <tr>
          	<td width="12%" height="31" align="right" bgcolor="#f5f5f5">电话:</td>
            <td width="20%" height="31" bgcolor="#f5f5f5" align="left"><input name="uservo.mobile" type="text" id="mobile" size="14" value=""></td>
          </tr>
        </table>
         <table width="95%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="50" align="right"><input type="submit" id="subbutton" value=" 提 交 " onclick="return submit1()"></td>
            </tr>
          </table></td>
        <td width="1" bgcolor="#e1e1e2"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="5" height="5"><img src="<%=basePath%>/images/019.jpg" width="5" height="5"></td>
        <td width="100%" height="5" class="bg_002"></td>
        <td width="5" height="5"><img src="<%=basePath%>/images/020.jpg" width="5" height="5"></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
<table width="603" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="26">&nbsp;</td>
  </tr>
</table>
</body>
</html>